package p14.p1408;

import java.util.Arrays;

public class RegexTest {
    public static void main(String[] args) {
        String s = "91 27 46 38 50";
        String [] strarr = s.split(" +");

        int [] arr = new int[strarr.length];
        int [] dd = {1,1,1,1,1};
       // int [] strint = [strarr.length] ;
        for (int i = 0; i < strarr.length; i++) {

            arr[i]= Integer.parseInt(strarr[i]);
            dd[i]= Integer.parseInt(strarr[i]);
/*            System.out.println(arr[i]);
            System.out.println("------------");
            System.out.println(dd[i]);*/
        }
        Arrays.sort(arr);
/*        String pxh = "";

        //Integer ff = arr.toString();
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
           pxh= pxh+Integer.toString(arr[i])+" ";
        }

*//*        Integer integer =new Integer();
        Integer.toString();*//*
        System.out.println(pxh);


        System.out.println(ff);*/

        StringBuffer stringBuffer = new StringBuffer();
/*        String ss = stringBuffer.toString();
       // StringBuilder ds = arr.toString();
        System.out.println("ss = " + ds);*/
        for (int i = 0; i < arr.length; i++) {
            stringBuffer.append(arr[i]).append(" ");
        }
        System.out.println(Arrays.toString(arr));

        System.out.println("stringBuffer = " + stringBuffer);
        System.out.println("stringBuffer = " + stringBuffer.toString().trim());

    }
}
